﻿using System;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;

namespace CrmClient
{
    public interface IWcfCrmClient
    {
        Guid Create(Entity entity);

        void Update(Entity entity);

        void Delete(string entityName, System.Guid id);

        EntityCollection RetrieveMultiple(QueryBase query);

        OrganizationResponse Execute(OrganizationRequest request);

        void Close();
    }
}
